<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
import java.io.*;
import java.util.*;

<html>
<head>
    <title>JSP - Hello World</title>
</head>
<body>
<h1><%= "Hello World!" %>

</h1>
<br/>
<a href="hello-servlet">Hello Servlet</a>
<%!
    int i;
%>
 <%   int sum = 0;
for (int i = 0; i < 10; i++) {
    sum += i;
}
System.out.println(sum);
%>
<%
    for(i=0; i<10; i++){
        %>
<h1>你好张先生</h1>
<%

    }
%>

</body>
</html>